package org.rguess.patterns.interfaces.facade;

public class Program {
	public static void main(String[] args) {
		Power power = new Power();
		// 创建电源对象
		MainBoard mainBoard = new MainBoard();
		// 创建主板对象
		HardDisk hardDisk = new HardDisk();
		// 创建硬盘对象
		OperateionSystem operationSystem = new OperateionSystem();
		// 创建操作系统对象
		Computer computer = new Computer(power, mainBoard, hardDisk,
				operationSystem);
		// 创建计算机对象
		computer.Startup();
		// 启动电脑
		System.out.println("关闭电脑");
		computer.Shutdown();
		// 关闭电脑
	}
}
